As an engineer working on containerizing your application on the OCI platform, which two statements are true about OCI container instances?
Correct Answer: C,E
1z0-1109-23 Exam Question 27
You're working with Docker images and containers, and you need to get rid of an image that's no longer needed. However, when you use the command to remove the image, you get the following error: # docker rmi d1230455e12 Error response from daemon: conflict: un-able to delete d1230455e12 must be forced image is being used by stopped container of1262bd1285 Which steps would you take to delete the specified image?
Correct Answer: D
Explanation The steps that you would take to delete the specified image are: * To determine which container is using the image, use the "docker ps -a" command. This command will list all the containers in your system, including their ID, image name, status, etc. You can look for the container that has the image name d123f4e55e12 in its output. * To delete the container, use the 'docker rm 0f1262bd1285' command. This command will remove the container with the ID 0f1262bd1285 from your system. You can also use the -f flag to force remove the container if it is running or paused. * To delete the docker image, use the 'docker rmi d123f4e55e12' command. This command will remove the image with the ID d123f4e55e12 from your system. You can also use the -f flag to force remove the image if it is being used by another container. Verified References: [docker ps - Docker Documentation], [docker rm - Docker Documentation], [docker rmi - Docker Documentation]
1z0-1109-23 Exam Question 28
You're working with Docker images and containers, and you need to get rid of an image that's no longer needed. However, when you use the command to remove the image, you get the following error: # docker rmi d1230455e12 Error response from daemon: conflict: un-able to delete d1230455e12 must be forced image is being used by stopped container of1262bd1285 Which steps would you take to delete the specified image?
Correct Answer: C
Explanation The steps that you would take to delete the specified image are: * To determine which container is using the image, use the "docker ps -a" command. This command will list all the containers in your system, including their ID, image name, status, etc. You can look for the container that has the image name d123f4e55e12 in its output. * To delete the container, use the 'docker rm 0f1262bd1285' command. This command will remove the container with the ID 0f1262bd1285 from your system. You can also use the -f flag to force remove the container if it is running or paused. * To delete the docker image, use the 'docker rmi d123f4e55e12' command. This command will remove the image with the ID d123f4e55e12 from your system. You can also use the -f flag to force remove the image if it is being used by another container. Verified References: [docker ps - Docker Documentation], [docker rm - Docker Documentation], [docker rmi - Docker Documentation]
1z0-1109-23 Exam Question 29
As a DevOps engineer, you are tasked with patching a server application running on 100 web Servers. How can Ansible help you accomplish this task and which Ansible element should you leverage?
Correct Answer: D
Explanation To patch a server application running on 100 web servers, you can use Ansible and leverage a playbook. A playbook is a YAML file that defines the desired state of your infrastructure, such as packages, services, files, etc. You can use a playbook to specify the tasks that need to be performed on each server, such as updating the application, restarting the service, etc. You can also execute the playbook against a group of web servers, as defined in the inventory. The inventory is a file that lists the hosts and groups that Ansible can manage. By using a playbook and an inventory, you can automate the patching process and ensure consistency across all servers. Verified References: [Playbooks - Ansible Documentation], [Working with Inventory - Ansible Documentation]
1z0-1109-23 Exam Question 30
As a DevOps engineer working on containerizing a microservices-based application to be hosted on OCI Cloud platforms, which step can help ensure that the container images have not been modified after being pushed to OCI Registry?
Correct Answer: B
Explanation The step that can help ensure that the container images have not been modified after being pushed to OCI Registry is signing the image using the Container Registry CLI and creating an image signature that associates the image with the master encryption key and key version in the Vault service. Image signing is a process of adding a digital signature to an image to verify its authenticity and integrity. You can use OCI Registry CLI to sign an image using a Vault managed key and create an image signature that contains information such as the image name, tag, digest, key OCID, key version OCID, etc. You can also use OCI Registry CLI to verify an image signature before pulling or running an image. Verified References: [Image Signing - Oracle Cloud Infrastructure Registry], [Signing Images - Oracle Cloud Infrastructure Registry]