Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 27
A container running a Python script is failing when it reaches the integration testing phase of the CI/CD process. The code has been reviewed thoroughly, and the build process works on this container and all other containers pass unit and integration testing.
What should be verified to resolve the issue?
Answer options
- A. that the correct port is exposed in the Dockerfile
- B. that the necessary modules and packages are installed on build
- C. that the script is running from the right directory
- D. that the Python version of the container image is correct
Correct answer: A
Explanation
The correct answer is A because if the required port is not exposed in the Dockerfile, the container may not be able to communicate properly during integration testing. Options B, C, and D could also be relevant but do not directly address the immediate issue of communication that could cause the container to fail during this specific phase.