Question 50
An EC2 CodeDeploy release fails during ApplicationStart. Where should the engineer look first?
- Only the source repository's star count
- Only the load balancer's certificate expiration
- Deployment lifecycle logs and the hook script's exit status on the target
- Only the total bucket size
Explanation
Correct Answer
C:These identify the failing phase and command; subsequent configuration changes should follow the actual script error.
Incorrect Answers
A:Repository popularity provides no deployment execution evidence.
B:A certificate can affect traffic but does not explain a reported local hook exit by itself.
D:Artifact storage volume does not identify the failing startup command.
Question 51
Pull-request tests accept code from external contributors. Which configuration reduces exposure while still running tests?
- Run pull requests with the production deployment role
- Automatically approve deployment when tests start
- Use an isolated test project with no production secrets and minimal permissions
- Inject production passwords and rely on log masking
Explanation
Correct Answer
C:Submitted code executes commands, so its environment must be treated as untrusted rather than granted release authority.
Incorrect Answers
A:An attacker could use test commands to exercise production permissions.
B:Starting tests says nothing about their outcome or source trust.
D:Masking does not prevent malicious network exfiltration from code that reads secrets.
Question 52
Backups finish successfully every night, but the team has never restored the application. What evidence is still missing?
- Treat successful backup-job status as sufficient recovery evidence
- A tested restore proving usable data and measured recovery time
- Validate only that the backup vault contains recovery-point identifiers
- Validate the infrastructure template without restoring data
Explanation
Correct Answer
B:Backup completion alone does not demonstrate that the whole service can recover within its objectives.
Incorrect Answers
A:A completed copy does not establish application usability or the time required to restore dependencies.
C:Inventory demonstrates stored backups, not a successful restoration of representative business data.
D:A template check cannot establish that the saved data is usable or that recovery meets the timing objective.
Question 53
A temporary integration receives a KMS grant for a limited operational period. What should teardown include?
- Rename the key alias as the sole revocation
- Retire or revoke the grant as appropriate and verify future use is denied
- Assume stopping one process removes all key grants
- Delete only the integration dashboard
Explanation
Correct Answer
B:A persistent grant can outlive the integration; removing its application configuration alone does not remove cryptographic authorization.
Incorrect Answers
A:An alias change does not revoke an existing grant to the key.
C:KMS grants are authorization objects independent of the process lifetime.
D:Presentation removal does not change the grant.
Question 54
Private workloads must retrieve Secrets Manager values without public internet egress. What connectivity pattern fits?
- Embedding the secret in the image as the network fix
- A public DNS record with no reachable route
- An S3 gateway endpoint alone
- A Secrets Manager interface VPC endpoint with suitable DNS and security-group access
Explanation
Correct Answer
D:Private endpoint routing supports the service API path; IAM and any KMS permissions remain necessary.
Incorrect Answers
A:That abandons managed retrieval and distributes persistent sensitive data.
B:Name resolution alone does not establish private service connectivity.
C:A gateway endpoint for S3 does not provide the Secrets Manager API endpoint.
Question 55
A VPC endpoint policy permits only one S3 bucket. A role allows access to all buckets. What should an application using that endpoint expect?
- Every bucket becomes accessible because the connection is private
- The endpoint grants access even if the role lacks permission
- The endpoint policy can restrict access through that endpoint
- The role policy automatically overrides the endpoint
Explanation
Correct Answer
C:The role's broad allow does not bypass the endpoint's applicable restrictions; other policy layers still apply.
Incorrect Answers
A:Private routing is not equivalent to unrestricted authorization.
B:Endpoint policies do not replace the principal's required authorization.
D:An identity allow does not cancel the endpoint restriction.
Question 56
Only pushes to release branches should start a V2 pipeline using a supported connection source. What should be configured?
- Source trigger branch filters matching release branches
- A production approval action alone
- A deployment bucket lifecycle rule
- A longer source polling interval
Explanation
Correct Answer
A:Filtering at the source trigger prevents unrelated branch pushes from creating executions.
Incorrect Answers
B:Approval can block deployment but still allows irrelevant pipeline executions to start.
C:Object retention has no control over repository event selection.
D:Polling frequency does not express the desired branch selection.
Question 57
A pricing library has 98% line coverage, but changing a discount comparison from greater-than to less-than does not fail any test. Which added technique most directly measures whether the tests detect this kind of logic defect?
- Publish JUnit results without changing test behavior
- Run the unchanged tests in a larger build container
- Mutation testing with assertions that must reject altered program behavior
- Raise the minimum line-coverage threshold from 98% to 99%
Explanation
Correct Answer
C:Mutants deliberately alter code behavior. Surviving mutants reveal that execution coverage has not established a sufficiently discriminating assertion for the changed logic.
Incorrect Answers
A:Structured reporting makes outcomes easier to inspect. It does not make the existing non-discriminating assertions fail on a mutant.
B:More CPU can reduce runtime, but it does not add assertions that detect the altered discount calculation.
D:Additional executed lines may improve breadth, but line coverage does not prove assertions distinguish the original comparison from its incorrect inverse.
Question 58
An SNS email topic receives alarm publications, but a new address gets nothing. What should be verified?
- Increase the alarm evaluation periods
- Grant the email recipient permission to invoke the alarm
- Create additional log streams for the alarm source
- The email subscription is confirmed
Explanation
Correct Answer
D:Unconfirmed subscriptions do not receive the expected topic notifications.
Incorrect Answers
A:The alarm already publishes to SNS; evaluation changes do not confirm an email endpoint.
B:Receiving a confirmed SNS email subscription does not require the person to invoke the alarm API.
C:Log ingestion topology does not activate an unconfirmed SNS email subscription.
Question 59
Workload administrators must not be able to erase central audit evidence. What architectural control fits?
- Grant every workload role full control of the destination bucket
- Keep all logs solely on workload instance disks
- Deliver to a separate controlled account with restricted deletion and appropriate retention protection
- Depend only on a written no-deletion convention
Explanation
Correct Answer
C:Account separation and storage controls reduce a compromised workload administrator's ability to alter the audit record.
Incorrect Answers
A:That directly authorizes tampering with the central record.
B:A local administrator could remove or alter that evidence.
D:A convention is not an enforced access boundary.
Question 60
A database slows while active connections approach its limit. What evidence should guide remediation?
- Connection metrics plus query and application connection behavior
- Increase max_connections without examining per-connection cost or query behavior
- Add read replicas before determining whether the bottleneck is eligible read traffic
- Restart the database repeatedly without inspecting client pools
Explanation
Correct Answer
A:The bottleneck may involve pooling, leaks, or long-running work rather than CPU alone.
Incorrect Answers
B:A larger ceiling can move pressure to memory or CPU and does not identify leaked or inefficient connections.
C:Replicas help suitable reads, but connection exhaustion may arise from leaks, long transactions, or write demand.
D:Restarts can temporarily clear sessions but leave the cause of connection growth unchanged.