- A
Enable data capture on the endpoint
Why wrong: Data capture logs requests but does not affect timeout behavior.
- B
Increase the endpoint's invocation timeout
Increasing the invocation timeout allows more time for large payloads to be processed.
- C
Deploy a shadow endpoint for testing
Why wrong: A shadow endpoint is for A/B testing, not for fixing timeout issues.
- D
Switch to a multi-model endpoint
Why wrong: Multi-model endpoints do not inherently change timeout handling.
Quick Answer
The answer is to increase the endpoint's invocation timeout. A 504 Gateway Timeout error on a SageMaker endpoint occurs when the model container takes longer than the default 60-second invocation timeout to process a request, which is common with large payloads that require extended inference time. By raising this timeout setting, you give the endpoint sufficient time to complete processing without prematurely terminating the connection. On the AWS Certified Machine Learning Engineer Associate MLA-C01 exam, this scenario tests your understanding of SageMaker endpoint configuration limits versus model performance constraints, often appearing as a distractor where candidates mistakenly suggest scaling the instance or optimizing the model instead. A key trap is confusing the invocation timeout with the idle timeout or the container’s own timeout settings. Remember the mnemonic: 504 = “Slow Payload, Need More Timeout” to quickly recall that the fix is a configuration change, not an infrastructure one.
MLA-C01 Deployment and Orchestration of ML Workflows Practice Question
This MLA-C01 practice question tests your understanding of deployment and orchestration of ml workflows. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A team notices that inference requests to their SageMaker endpoint are failing with '504 Gateway Timeout' for large payloads. What change should be made?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Increase the endpoint's invocation timeout
A 504 Gateway Timeout indicates that the SageMaker endpoint's invocation timeout (default 60 seconds) was exceeded while processing a large payload. Increasing the invocation timeout allows the endpoint more time to complete inference for large payloads, resolving the timeout error.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Enable data capture on the endpoint
Why it's wrong here
Data capture logs requests but does not affect timeout behavior.
- ✓
Increase the endpoint's invocation timeout
Why this is correct
Increasing the invocation timeout allows more time for large payloads to be processed.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Deploy a shadow endpoint for testing
Why it's wrong here
A shadow endpoint is for A/B testing, not for fixing timeout issues.
- ✗
Switch to a multi-model endpoint
Why it's wrong here
Multi-model endpoints do not inherently change timeout handling.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates confuse a 504 timeout with a 413 payload too large error, leading them to incorrectly consider multi-model endpoints or data capture instead of adjusting the invocation timeout.
Detailed technical explanation
How to think about this question
SageMaker endpoints use an Application Load Balancer (ALB) with a default idle timeout of 60 seconds for both the connection and the invocation. When a large payload (e.g., >1 MB) requires extended processing time, the ALB terminates the connection if the response isn't received within this window. Increasing the invocation timeout (up to 3600 seconds) via the `InvocationTimeoutInSeconds` parameter in the endpoint configuration allows the ALB to wait longer for the model to respond.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Deployment and Orchestration of ML Workflows — study guide chapter
Learn the concepts, then practise the questions
- →
Deployment and Orchestration of ML Workflows practice questions
Targeted practice on this topic area only
- →
All MLA-C01 questions
507 questions across all exam domains
- →
AWS Certified Machine Learning Engineer Associate MLA-C01 study guide
Full concept coverage aligned to exam objectives
- →
MLA-C01 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related MLA-C01 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Data Preparation for Machine Learning practice questions
Practise MLA-C01 questions linked to Data Preparation for Machine Learning.
ML Model Development practice questions
Practise MLA-C01 questions linked to ML Model Development.
Deployment and Orchestration of ML Workflows practice questions
Practise MLA-C01 questions linked to Deployment and Orchestration of ML Workflows.
ML Solution Monitoring, Maintenance and Security practice questions
Practise MLA-C01 questions linked to ML Solution Monitoring, Maintenance and Security.
MLA-C01 fundamentals practice questions
Practise MLA-C01 questions linked to MLA-C01 fundamentals.
MLA-C01 scenario practice questions
Practise MLA-C01 questions linked to MLA-C01 scenario.
MLA-C01 troubleshooting practice questions
Practise MLA-C01 questions linked to MLA-C01 troubleshooting.
Practice this exam
Start a free MLA-C01 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this MLA-C01 question test?
Deployment and Orchestration of ML Workflows — This question tests Deployment and Orchestration of ML Workflows — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Increase the endpoint's invocation timeout — A 504 Gateway Timeout indicates that the SageMaker endpoint's invocation timeout (default 60 seconds) was exceeded while processing a large payload. Increasing the invocation timeout allows the endpoint more time to complete inference for large payloads, resolving the timeout error.
What should I do if I get this MLA-C01 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 24, 2026
This MLA-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLA-C01 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.