CV0-003 · Question #1
cloud administrator uses a script to automatically restart all the servers running in the public cloud provider environment, which hosts e-commerce applications. The administrator decides to…
The correct answer is C. Validate the access credentials for the cloud provider are correct. The script deployed to the finance environment is using access credentials that target the e-commerce environment, causing unintended restarts of e-commerce servers instead of finance servers.
Question
cloud administrator uses a script to automatically restart all the servers running in the public cloud provider environment, which hosts e-commerce applications. The administrator decides to implement the same script for a similar environment that hosts the finance applications. After verifying the script is deployed to the public cloud environment for finance, the administrator schedules a job to run at 9:00 a.m. After 9:00 a.m., the administrator receives a report from the e- commerce team that the application is experiencing outages. Which of the following should the administrator do to resolve the issue?
Options
- AUpdate the version of the CLI tool for the public cloud provider.
- BCopy the script up to a bastion host in the environment and run it from there.
- CValidate the access credentials for the cloud provider are correct.
- DDebug the script and modify it to remove the flawed logic.
How the community answered
(28 responses)- A7% (2)
- B14% (4)
- C75% (21)
- D4% (1)
Why each option
The script deployed to the finance environment is using access credentials that target the e-commerce environment, causing unintended restarts of e-commerce servers instead of finance servers.
Updating the CLI tool version addresses compatibility issues, not environment targeting caused by wrong credentials.
Running the script from a bastion host changes execution location but does not fix the credential configuration pointing to the wrong cloud environment.
When a script runs against the wrong cloud environment, the root cause is almost always misconfigured access credentials - API keys, service accounts, or CLI profiles pointing to the wrong tenant or subscription. Validating and correcting the credentials ensures the script targets the finance environment as intended, resolving the e-commerce outage without changing any script logic.
The script logic is not flawed - it performed its intended action (restarting servers) against the wrong environment due to credential misconfiguration, not a logic error.
Concept tested: Cloud access credential scoping and environment isolation
Source: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html
Topics
Community Discussion
No community discussion yet for this question.