Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 63
Question 620
The DevOps team must resolve this scenario: A shared ECS deployment role can update any workload in the account despite developers owning separate applications. Which engineering change is MOST appropriate?
- Enforce MFA through suitable identity provider or IAM session conditions.
- Enable sufficient flow log scope with protected centralized analysis.
- Use appropriate tag-aware policies with guarded tagging permissions.
- Implement a controlled short-lived privileged role assumption with audit and review.
Explanation
Correct Answer
C:Use appropriate tag-aware policies with guarded tagging permissions. Its validation is: One application team can deploy its own service and is denied another team's service. The principle is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
Incorrect Answers
A:Enforce MFA through suitable identity provider or IAM session conditions. This instead addresses a different case: Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it. For the stated situation (A shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better engineering action is: Use appropriate tag-aware policies with guarded tagging permissions. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
B:Enable sufficient flow log scope with protected centralized analysis. This instead addresses a different case: Security detects unauthorized port scans but cannot determine which source attempted connections to a sensitive subnet. For the stated situation (A shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better engineering action is: Use appropriate tag-aware policies with guarded tagging permissions. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
D:Implement a controlled short-lived privileged role assumption with audit and review. This instead addresses a different case: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. For the stated situation (A shared ECS deployment role can update any workload in the account despite developers owning separate applications.), the better engineering action is: Use appropriate tag-aware policies with guarded tagging permissions. The deciding distinction is: Attribute-based access can constrain operations to approved resource ownership when tags are trustworthy.
Question 621
A DevOps team is reviewing: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record. Which TWO complementary actions should it take? Select TWO answers.
- Review object version IDs, checksums, write permissions and deployment references.
- Inspect ECS task definition secrets, IAM grants and account-specific parameter names.
- Check release history, lifecycle expiration rules, active references and recovery windows.
- Inspect image manifest, platform architecture, task definition and placement failures.
- Deploy pinned S3 object versions or digests after controlled artifact publication.
Explanation
Correct Answers
A:Review object version IDs, checksums, write permissions and deployment references. This is a required diagnostic evidence step for the stated situation: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record. The complementary correct action is: Deploy pinned S3 object versions or digests after controlled artifact publication. Both follow the principle: Artifact integrity should be verified against immutable signed or hashed release metadata.
E:Deploy pinned S3 object versions or digests after controlled artifact publication. This is a required controlled engineering action for the stated situation: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record. The complementary correct action is: Review object version IDs, checksums, write permissions and deployment references. Both follow the principle: Artifact integrity should be verified against immutable signed or hashed release metadata.
Incorrect Answers
B:Inspect ECS task definition secrets, IAM grants and account-specific parameter names. This is suitable for another situation: A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account. In this case, engineers instead need the paired investigation (Review object version IDs, checksums, write permissions and deployment references.) and design change (Deploy pinned S3 object versions or digests after controlled artifact publication.). These two steps address: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record.
C:Check release history, lifecycle expiration rules, active references and recovery windows. This is suitable for another situation: A deployment rolls back to a prior ECR image digest that was deleted by an aggressive lifecycle policy the previous night. In this case, engineers instead need the paired investigation (Review object version IDs, checksums, write permissions and deployment references.) and design change (Deploy pinned S3 object versions or digests after controlled artifact publication.). These two steps address: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record.
D:Inspect image manifest, platform architecture, task definition and placement failures. This is suitable for another situation: An ECS fleet includes both x86_64 and Arm64 capacity, but a pipeline publishes only an x86 image under a generic tag. In this case, engineers instead need the paired investigation (Review object version IDs, checksums, write permissions and deployment references.) and design change (Deploy pinned S3 object versions or digests after controlled artifact publication.). These two steps address: A deployment retrieves ZIP bundles from a common S3 prefix where operators can replace a file without updating the approved release record.
Question 622
Before changing production, engineers find: Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination. Which investigation should the engineer perform FIRST?
- Inspect role assignments, session duration, emergency change tickets and CloudTrail attribution.
- Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact.
- Inspect secret version stages, rotation workflow and application cache behavior.
- Review IAM users, IAM Identity Center assignments and HR identity lifecycle.
Explanation
Correct Answer
D:Review IAM users, IAM Identity Center assignments and HR identity lifecycle. The governing principle is: Central federation can simplify attribution, temporary sessions and staff deprovisioning. The next controlled engineering decision is: Move workforce access to federated IAM Identity Center permission sets with scoped sessions.
Incorrect Answers
A:Inspect role assignments, session duration, emergency change tickets and CloudTrail attribution. This instead addresses a different case: Production operators use permanently attached administrator policies to fix rare outages instead of using approved on-demand access. For the stated situation (Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination.), the better investigation is: Review IAM users, IAM Identity Center assignments and HR identity lifecycle. The deciding distinction is: Central federation can simplify attribution, temporary sessions and staff deprovisioning.
B:Inspect request patterns, rule priorities, WAF logs and legitimate traffic impact. This instead addresses a different case: A public application faces high-volume abusive HTTP requests that pass the ALB security group and overwhelm login processing. For the stated situation (Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination.), the better investigation is: Review IAM users, IAM Identity Center assignments and HR identity lifecycle. The deciding distinction is: Central federation can simplify attribution, temporary sessions and staff deprovisioning.
C:Inspect secret version stages, rotation workflow and application cache behavior. This instead addresses a different case: Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change. For the stated situation (Developers in 25 AWS accounts authenticate with individually created IAM users whose credentials remain active after termination.), the better investigation is: Review IAM users, IAM Identity Center assignments and HR identity lifecycle. The deciding distinction is: Central federation can simplify attribution, temporary sessions and staff deprovisioning.
Question 623
After implementing a proposed fix, the team reviews: A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load. Which result would BEST confirm that the risk is addressed?
- A representative producer load avoids persistent hot-shard throttling.
- A representative hot-key workload completes within throughput and latency targets.
- Traffic replay scales tasks before latency exceeds agreed business thresholds.
- A recovery test restores data to an approved timestamp before the accidental update.
Explanation
Correct Answer
B:A representative hot-key workload completes within throughput and latency targets. The approved action is: Redesign a skewed access key or shard high-volume writes while maintaining correct queries. The risk principle is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
Incorrect Answers
A:A representative producer load avoids persistent hot-shard throttling. This instead addresses a different case: A streaming workload begins dropping or delaying records because all events use the same partition key and one Kinesis shard is hot. For the stated situation (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better verification is: A representative hot-key workload completes within throughput and latency targets. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
C:Traffic replay scales tasks before latency exceeds agreed business thresholds. This instead addresses a different case: An ECS Fargate application scales tasks manually and saturates its ALB during promotional traffic spikes. For the stated situation (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better verification is: A representative hot-key workload completes within throughput and latency targets. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
D:A recovery test restores data to an approved timestamp before the accidental update. This instead addresses a different case: A table is accidentally overwritten and operators can restore only yesterday's full snapshot, losing recent transactions. For the stated situation (A DynamoDB table has substantial unused provisioned capacity but requests to one partition key still throttle under burst load.), the better verification is: A representative hot-key workload completes within throughput and latency targets. The deciding distinction is: A hot partition can throttle despite table-wide capacity and requires appropriate key design.
Question 624
After implementing a proposed fix, the team reviews: A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment. Which result would BEST confirm that the risk is addressed?
- The stack returns to a stable state with all original persistent resources intact.
- Fresh stacks from the approved construct reject unauthorized public bucket access.
- Test dev and production principals receive distinct expected effective controls.
- An invalid flag value is rejected or rolled back without rebuilding the application image.
Explanation
Correct Answer
D:An invalid flag value is rejected or rolled back without rebuilding the application image. The approved action is: Use AppConfig or an approved configuration store with versioned safe rollout and validation. The risk principle is: Runtime configuration changes should be governed separately from immutable application binaries.
Incorrect Answers
A:The stack returns to a stable state with all original persistent resources intact. This instead addresses a different case: An automated CloudFormation update rolls back because a new IAM permission is denied, but the team plans to delete the entire production stack to recover. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better verification is: An invalid flag value is rejected or rolled back without rebuilding the application image. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
B:Fresh stacks from the approved construct reject unauthorized public bucket access. This instead addresses a different case: A reusable AWS CDK construct creates S3 buckets with public access enabled unless individual teams remember to override the setting. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better verification is: An invalid flag value is rejected or rolled back without rebuilding the application image. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
C:Test dev and production principals receive distinct expected effective controls. This instead addresses a different case: Development accounts and regulated production accounts need distinct guardrails, but a single organization-wide policy blocks legitimate development experiments. For the stated situation (A service reads configuration directly from process environment variables, forcing a container rebuild for each feature-flag adjustment.), the better verification is: An invalid flag value is rejected or rolled back without rebuilding the application image. The deciding distinction is: Runtime configuration changes should be governed separately from immutable application binaries.
Question 625
Before changing production, engineers find: An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity. Which investigation should the engineer perform FIRST?
- Inspect API Gateway usage-plan or stage throttles, metrics and request IDs.
- Inspect Auto Scaling activity history, placement errors, launch template and allowed subnets.
- Inspect event identifiers, destination conditional writes and retry behavior.
- Inspect Kubernetes describe/logs, image version, configuration and probe failures.
Explanation
Correct Answer
B:Inspect Auto Scaling activity history, placement errors, launch template and allowed subnets. The governing principle is: Capacity failures require examining availability zones, allocation strategy and quotas. The next controlled engineering decision is: Diversify capacity pools or update launch configuration consistent with requirements.
Incorrect Answers
A:Inspect API Gateway usage-plan or stage throttles, metrics and request IDs. This instead addresses a different case: A mobile API intermittently returns HTTP 429 during marketing peaks, but its Lambda error metric stays nearly zero. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better investigation is: Inspect Auto Scaling activity history, placement errors, launch template and allowed subnets. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
C:Inspect event identifiers, destination conditional writes and retry behavior. This instead addresses a different case: An S3 upload event triggers a Lambda that copies customer records, and retries create duplicate records in a destination store. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better investigation is: Inspect Auto Scaling activity history, placement errors, launch template and allowed subnets. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
D:Inspect Kubernetes describe/logs, image version, configuration and probe failures. This instead addresses a different case: An EKS deployment enters CrashLoopBackOff after a config release, although the cluster nodes and pods have adequate CPU. For the stated situation (An Auto Scaling group repeatedly fails to launch enough instances in one AZ despite other AZs having capacity.), the better investigation is: Inspect Auto Scaling activity history, placement errors, launch template and allowed subnets. The deciding distinction is: Capacity failures require examining availability zones, allocation strategy and quotas.
Question 626
Before changing production, engineers find: An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service. Which investigation should the engineer perform FIRST?
- Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions.
- Review deployment alarm configuration, canary outcomes, rollback settings and traffic metrics.
- Trace pipeline stages, approval authorization, test outputs and required change windows.
- Review synthetic journey coverage, response assertion logic and post-deploy gate signals.
Explanation
Correct Answer
A:Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions. The governing principle is: Delivery traceability needs immutable artifact identity linked to source and deployment records. The next controlled engineering decision is: Record commit metadata and promote images by immutable digest through the release pipeline.
Incorrect Answers
B:Review deployment alarm configuration, canary outcomes, rollback settings and traffic metrics. This instead addresses a different case: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. For the stated situation (An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service.), the better investigation is: Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions. The deciding distinction is: Delivery traceability needs immutable artifact identity linked to source and deployment records.
C:Trace pipeline stages, approval authorization, test outputs and required change windows. This instead addresses a different case: A critical payments service is automatically promoted from a successful staging build directly into production without business acceptance. For the stated situation (An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service.), the better investigation is: Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions. The deciding distinction is: Delivery traceability needs immutable artifact identity linked to source and deployment records.
D:Review synthetic journey coverage, response assertion logic and post-deploy gate signals. This instead addresses a different case: After a deployment, the homepage returns HTTP 200 while checkout is broken for authenticated customers. For the stated situation (An on-call engineer cannot tell which Git commit generated the container image running in a production ECS service.), the better investigation is: Inspect build provenance, repository commit IDs, image digests and ECS task definition revisions. The deciding distinction is: Delivery traceability needs immutable artifact identity linked to source and deployment records.
Question 627
A DevOps team is reviewing: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. Which TWO complementary actions should it take? Select TWO answers.
- Compare staging and production package hashes, dependency resolution and pipeline stage contracts.
- Build a versioned immutable artifact once, then promote that artifact through approvals and environments.
- Review deployment alarm configuration, canary outcomes, rollback settings and traffic metrics.
- Inspect producer schema changes, consumer assumptions and live message failures.
- Review connection scope, repo permissions, webhook events and pipeline triggers.
Explanation
Correct Answers
A:Compare staging and production package hashes, dependency resolution and pipeline stage contracts. This is a required diagnostic evidence step for the stated situation: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. The complementary correct action is: Build a versioned immutable artifact once, then promote that artifact through approvals and environments. Both follow the principle: Build-once promotion reduces environment drift and strengthens artifact provenance.
B:Build a versioned immutable artifact once, then promote that artifact through approvals and environments. This is a required controlled engineering action for the stated situation: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. The complementary correct action is: Compare staging and production package hashes, dependency resolution and pipeline stage contracts. Both follow the principle: Build-once promotion reduces environment drift and strengthens artifact provenance.
Incorrect Answers
C:Review deployment alarm configuration, canary outcomes, rollback settings and traffic metrics. This is suitable for another situation: A production delivery pipeline remains green after a deployment even though health checks fail during post-deploy traffic. In this case, engineers instead need the paired investigation (Compare staging and production package hashes, dependency resolution and pipeline stage contracts.) and design change (Build a versioned immutable artifact once, then promote that artifact through approvals and environments.). These two steps address: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.
D:Inspect producer schema changes, consumer assumptions and live message failures. This is suitable for another situation: An updated ECS application changes a JSON field name; the deployment succeeds while downstream order processors begin dropping events. In this case, engineers instead need the paired investigation (Compare staging and production package hashes, dependency resolution and pipeline stage contracts.) and design change (Build a versioned immutable artifact once, then promote that artifact through approvals and environments.). These two steps address: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.
E:Review connection scope, repo permissions, webhook events and pipeline triggers. This is suitable for another situation: A shared CodePipeline connection to an external source provider allows unrelated projects to trigger privileged production pipelines. In this case, engineers instead need the paired investigation (Compare staging and production package hashes, dependency resolution and pipeline stage contracts.) and design change (Build a versioned immutable artifact once, then promote that artifact through approvals and environments.). These two steps address: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches.
Question 628
Before changing production, engineers find: A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy. Which investigation should the engineer perform FIRST?
- Review CloudTrail change events, Config rule status, approval records and owner.
- Inspect queue age, processing throughput, instance warmup and policy limits.
- Inspect EventBridge event patterns, sample AWS event payloads and Lambda invocations.
- Inspect ECS service events, target health, logs, dependency reachability and restart rate.
Explanation
Correct Answer
B:Inspect queue age, processing throughput, instance warmup and policy limits. The governing principle is: Resource adjustment should respond to measured demand with bounded Auto Scaling behavior. The next controlled engineering decision is: Connect relevant metrics to a bounded Auto Scaling policy with controlled thresholds.
Incorrect Answers
A:Review CloudTrail change events, Config rule status, approval records and owner. This instead addresses a different case: Operations edits a firewall security group to add temporary unrestricted access but forgets to remove it after an emergency. For the stated situation (A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy.), the better investigation is: Inspect queue age, processing throughput, instance warmup and policy limits. The deciding distinction is: Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
C:Inspect EventBridge event patterns, sample AWS event payloads and Lambda invocations. This instead addresses a different case: A security automation rule currently runs for every CloudTrail event, flooding a response Lambda with unrelated calls. For the stated situation (A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy.), the better investigation is: Inspect queue age, processing throughput, instance warmup and policy limits. The deciding distinction is: Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
D:Inspect ECS service events, target health, logs, dependency reachability and restart rate. This instead addresses a different case: An ECS application task fails health checks every few minutes, and the team restarts the same failing task manually without identifying a dependency outage. For the stated situation (A consumer service has rapidly increasing queue lag, and responders manually launch instances rather than using a safe dynamic policy.), the better investigation is: Inspect queue age, processing throughput, instance warmup and policy limits. The deciding distinction is: Resource adjustment should respond to measured demand with bounded Auto Scaling behavior.
Question 629
An AWS platform team investigates this condition: An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold. Which DevOps principle BEST explains the core problem?
- Build-once promotion reduces environment drift and strengthens artifact provenance.
- Application artifact should be immutable while environment configuration is supplied through controlled target-specific references.
- Blue/green ECS deployments require controlled target groups, listeners and health validation.
- Traffic shifting must account for backward-compatible shared-state dependencies.
Explanation
Correct Answer
C:Blue/green ECS deployments require controlled target groups, listeners and health validation. Relevant first evidence: Inspect CodeDeploy ECS deployment config, target groups, listener routes and alarm settings. The resulting controlled response is: Configure a blue/green ECS deployment with validation traffic and automatic rollback conditions.
Incorrect Answers
A:Build-once promotion reduces environment drift and strengthens artifact provenance. This instead addresses a different case: Each environment rebuilds an application from its Git branch, making production binaries differ from staging even when the commit matches. For the stated situation (An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold.), the better principle is: Blue/green ECS deployments require controlled target groups, listeners and health validation. The deciding distinction is: Blue/green ECS deployments require controlled target groups, listeners and health validation.
B:Application artifact should be immutable while environment configuration is supplied through controlled target-specific references. This instead addresses a different case: A containerized service works in staging but production fails because a required secret name was hardcoded to the staging account. For the stated situation (An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold.), the better principle is: Blue/green ECS deployments require controlled target groups, listeners and health validation. The deciding distinction is: Blue/green ECS deployments require controlled target groups, listeners and health validation.
D:Traffic shifting must account for backward-compatible shared-state dependencies. This instead addresses a different case: An application switches its ALB target group to a new version while both versions connect to a shared relational schema. For the stated situation (An ECS service release must let QA validate a new task set before production traffic shifts, with rollback if alarms breach a threshold.), the better principle is: Blue/green ECS deployments require controlled target groups, listeners and health validation. The deciding distinction is: Blue/green ECS deployments require controlled target groups, listeners and health validation.
Question 630
An AWS platform team investigates this condition: A pipeline uses STS credentials to deploy a stack, but those credentials expire during a long manual approval pause and the deployment later fails. Which DevOps principle BEST explains the core problem?
- Machine credentials should be centrally rotated with coordinated client refresh and access scoping.
- Temporary credential lifetime and retrieval must match execution and approval workflow timing.
- High-impact human administrative access should require MFA and strong federation controls.
- Audit evidence should be isolated from operators who perform high-risk changes.
Explanation
Correct Answer
B:Temporary credential lifetime and retrieval must match execution and approval workflow timing. Relevant first evidence: Inspect session duration, approval stage placement and credential acquisition logic. The resulting controlled response is: Request fresh short-lived credentials only when the gated deployment action begins.
Incorrect Answers
A:Machine credentials should be centrally rotated with coordinated client refresh and access scoping. This instead addresses a different case: Multiple application instances embed a database password that is rotated manually, causing widespread outages after each change. For the stated situation (A pipeline uses STS credentials to deploy a stack, but those credentials expire during a long manual approval pause and the deployment later fails.), the better principle is: Temporary credential lifetime and retrieval must match execution and approval workflow timing. The deciding distinction is: Temporary credential lifetime and retrieval must match execution and approval workflow timing.
C:High-impact human administrative access should require MFA and strong federation controls. This instead addresses a different case: Human operators access high-risk account settings without multifactor authentication, even though a company policy mandates it. For the stated situation (A pipeline uses STS credentials to deploy a stack, but those credentials expire during a long manual approval pause and the deployment later fails.), the better principle is: Temporary credential lifetime and retrieval must match execution and approval workflow timing. The deciding distinction is: Temporary credential lifetime and retrieval must match execution and approval workflow timing.
D:Audit evidence should be isolated from operators who perform high-risk changes. This instead addresses a different case: An administrator can modify production resources and delete the only CloudTrail delivery bucket objects using the same role. For the stated situation (A pipeline uses STS credentials to deploy a stack, but those credentials expire during a long manual approval pause and the deployment later fails.), the better principle is: Temporary credential lifetime and retrieval must match execution and approval workflow timing. The deciding distinction is: Temporary credential lifetime and retrieval must match execution and approval workflow timing.