Share this and help your friends and colleagues also

Thursday, December 29, 2016

Network interview questions and answers - Part 1

Network interview questions and answers - Part 1

1. What is a network?
It is a set of devices connected by communication links. A node can be
a computer or any other device capable of sending and/or receiving
data generated by other nodes on the network.

2. What is a protocol?
It is a set of rules that governs data communication.

3. What is multiplexing?
Multiplexing is the process of dividing a link, the phycal medium, into
logical channels for better efficiency. Here medium is not changed but
it has several channels instead of one.

4. Define bandwidth?
The range of frequencies that a medium can pass is called bandwidth.
It is the difference between the highest and lowest frequencies that
the medium can satisfactorily pass.

5. What do you mean by switching?
It is a method in which communication devices are connected to one
another efficiently. A switch is intermediary hardware or software that
links devices together temporarily.

6. What are the important topologies for networks?
BUS topology

STAR topology


RING topology

MESS topology

7. What are the duties of data link layer?
Data link layer is responsible for carrying packets from one hop (computer or router)
to the next. The duties of data link layer include packetizing, adderssing, error
control, flow control, medium access control.

8. What is virtual channel?
Virtual channel is normally a connection from one source to one destination, although
multicast connections are also permitted. The other name for virtual channel is
virtual circuit.

9. What is multicast routing?
Sending a message to a group is called multicasting, and its routing algorithm is
called multicast routing.

10. What is TELNET ?
TELNET is a client -server application that allows a user to log on to a remote
machine,giving the user access to the remote system. TELNET is an abbreviation of
terminal network.

11. What do you mean by data communication?
It is the exchange of data between two devices via some form of transmission
medium such as wire cable. The communicating system must be part of a
communication system made up of a combination of hardware and software.The
effectiveness of a data communication system depends on three fundamental
characteristics: delivery, accuracy and timeliness.

12. What is distributed processing?
It is a strategy in which services provided by the network reside at multiple sites.

13. What is point to point connection?
It provides a dedicated link between two devices. The entire capacity of the link is
reserved for transmission between the two devices.

14. What is Redundancy?
The concept of including extra information in the transmission solely for the purpose


of comparison. This technique is called redundancy.

15. What is subnet?
A generic term for section of a large networks usually separated by a bridge or
router.

16. What is multipoint connection?
In multipoint connection more than two specific devices share a single link. Here the
capacity of the channel is shared either separately or temporally.

17. What is simplex?
It is the mode of communication between two devices in which flow of data is
unidirectional.

18. What is half-duplex?
It is the mode of communication between two devices in which flow of data is
bidirectional but not at the same time. ie each station can transmit and receive but
not at the same time.

19. What is full duplex?
It is the mode of communication between two devices in which flow of data is
bidirectional and it occurs simultaneously. Here signals going in either direction share
the capacity of the link.

20. What is a topology?
Topology of a network is defined as the geometric representation of the relationship
of all the links and linking devices (node) to one another .

21. What is Bandwidth?
Every line has an upper limit and a lower limit on the frequency of signals it can
carry. This limited range is called the bandwidth.

22. What is point-to-point protocol?
A communications protocol used to connect computers to remote networking services
including Internet service providers.

23. What is switching?
Switching in data communication is of three types


Circuit switching

Packet switching

Message switching

24.
Compare analog and digital signals?
Analog signals can have an infinite number of values in a range but digital signal can
have only a limited number of values.

25.
What is the difference between ARP and RARP?
ARP -Address resolution protocol is used to associate the 32 bit IP address with the
48 bit physical address, used by a host or a router to find the physical address of
another host on its network by sending a ARP query packet that includes the IP
address of the receiver.

RARP -Reverse address resolution protocol allows a host to discover its Internet
address when it knows only its physical address.

26.
What is ICMP?
ICMP is Internet Control Message Protocol, a network layer protocol of the TCP/IP
suite used by hosts and gateways to send notification of datagram problems back to
the sender.

27.
What is logical link control?
One of two sublayers of the data link layer of OSI reference model, as defined by the
IEEE 802 standard. This sublayer is responsible for maintaining the link between
computers when they are sending data across the physical network connection.

28.
What is difference between baseband and broadband transmission?
In a baseband transmission, the entire bandwidth of the cable is consumed by a
single signal. In broadband transmission, signals are sent on multiple frequencies,
allowing multiple signals to be sent simultaneously.

29.
What is mesh network?
A network in which there are multiple network links between computers to provide
multiple paths for data to travel.

30.
Define bit rate and bit interval?

Digital signals are aperiodic.so instead of using period and frequency we use bit
interval and bit rate respectively.Bit interval is the time required to send one single
bit.Bit rate is the number of bit intervals per second.

31. What is sampling?
It is the process of obtaining amplitude of a signal at regular intervals.

32. Define pulse amplitude modulation?
It is an analog to digital conversion method which takes analog signals, samples it
and generates a series of pulse based on the results of the sampling. It is not used in
data communication because the series of pulses generated still of any amplitude. To
modify it we use pulse code modulation.

33. What is Nyquist Theorem?
According to this theorem, the sampling rate must be at least 2 times the highest
frequency of the original signal.

34. What is Asynchronous mode of data transmission?
It is a serial mode of transmission.In this mode of transmission, each byte is framed
with a start bit and a stop bit. There may be a variable length gap between each
byte.

35. What are the different types of multiplexing?
Multiplexing is of three types. Frequency division multiplexing and wave division
multiplexing is for analog signals and time division multiplexing is for digital signals.

36. What MAU?
In token Ring, hub is called Multistation Access Unit(MAU).

37. What do you mean by switching?
It is a method in which communication devices are connected to one another
efficiently.A switch is intermediary hardware or software that links devices together
temporarily.

38. What do you mean by flow control?
It is the regulation of sender’s data rate so that the receiver buffer doesn’t become
overwhelmed.i.e. flow control refers to a set of procedures used to restrict the
amount of data that the sender can send before waiting for acknowledgement.


39. What do you mean by Bluetooth?
It is a wireless LAN technology designed to connect devices of different functions
such as telephones, notebooks, computers, cameras, printers and so on. Bluetooth
LAN Is an adhoc network that is the network is formed spontaneously? It is the
implementation of protocol defined by the IEEE 802.15 standard.

40. What is virtual channel?
Virtual channel is normally a connection from one source to one destination, although
multicast connections are also permitted. The other name for virtual channel is
virtual circuit.

41. What is multicast routing?
Sending a message to a group is called multicasting, and its routing algorithm is
called multicast routing.

42. What is Mail Gateway?
It is a system that performs a protocol translation between different electronic mail
delivery protocols.

43. What is IP address?
The internet address (IP address) is 32bits that uniquely and universally defines a
host or router on the internet.
The portion of the IP address that identifies the network is called netid. The portion
of the IP address that identifies the host or router on the network is called hostid.


44. What do you mean by subnetting?
Subnetting divides one large network into several smaller ones. It adds an
intermediate level of hierarchy in IP addressing.

45. What is Firewalls?
It is an electronic downbridge which is used to enhance the security of a network. It’s
configuration has two components.

Two routers
Application gateway


46. What is Repeaters ?
A receiver receives a signal before it becomes too weak or corrupted, regenerates
the original bit pattern, sand puts the refreshed copy back onto the link. It operates


on phycal layer of OSI model.

47. What is Bridges?
They divide large network into smaller components.They can relay frames between
two originally separated LANs. They provide security through partitioning traffic.
They operate on phycal and data link layer of OSI model.

48. What is Gateway ?
It is a protocol converter.A gateway can accept a packet formatted for one protocol
and convert it to a packet formatted for another protocol. It operates on all the
seven layers of OSI model.

49. What do you mean by peer ?
Entities comprising the corresponding layers on different machines are called peers.

50. What do you mean by broadcasting ?
Broadcast system allow addressing a packet to all destination by using a special code
in address field. when packet is transmitted it is received and processed by every
machine on the network.

51. What is source route?
It is a sequence of IP addresses identifying the route a datagram must follow. A
source route may optionally be included in an IP datagram header.

52. What are major types of networks?
Server-based network

Peer-to-peer network

53. What are the protocols in application layer ?
The protocols defined in application layer are

TELNET

FTP

SMTP

SMTP

54. What do you mean by point to point network?

Point to point network consist of many connections between individual pair of
machines.large networks are point to point.Routing algorithm plays an important in
point to point network.It uses stored ad forword technique.It is a packet switching
network.

55. Define Retransmission?
Retransmission is a technique in which the receiver detects the occurrence of an
error and asks the sender to resend the message. Resending is repeated until a
message arrives that the receiver believes is error-freed.

56. What are major types of networks?
Server-based network

Peer-to-peer network

57. What are the protocols in application layer ?
The protocols defined in application layer are

TELNET

FTP

SMTP

SMTP

58. What do you mean by point to point network?
Point to point network consist of many connections between individual pair of
machines.large networks are point to point.Routing algorithm plays an important in
point to point network.It uses stored ad forword technique.It is a packet switching
network.

59. What are the protocols in transport layer ?
The protocols defined in transport layer are :

TCP

UDP

60. Define TCP ?

It is connection oriented protocol.It consist byte streams oeiginating on one machine
to be delivered without error on any other machine in the network.while transmitting
it fragments the stream to discrete messages and passes to interner layer.At the
destination it reassembles the messages into output stream.

61. What is URL ?
It is a standard for specifying any kind of information on the World Wide Web.

62. Define UDP ?
It is unreliable connectionless protocol.It is used for one-shot,client-server
type,request reply queries and applications in which prompt delivery is required than
accuracy.

63. What is World Wide Web ?
World Wide Web is a repository of information spread all over the world and linked
together.It is a unique combination of flexibility,portability,and user-friendly features
.The World Wide Web today is a distributed client-server service,in which a client
using a browser can access a service using a server.The service provided is
distributed over many locations called web sites.

64. What is Hypertext Transfer Protocol(HTTP) ?
It is the main protocol used to access data on the World Wide Web .the protol
transfers data in the form of plain text,hypertext,audio,video,and so on. It is so
called because its efficiency allows its use in a hypertext environment where there
are rapid jumps from one document to another.

65. What do you mean by Simple Mail Transfer Protocol ?
The TCP/IP protocol that supports electronic mail on the internet is called Simple Mail
Transfer Protocol.SMTP provides for mail exchange between users on the same or
different computer and supports Sending a single message to one or more recipient
Sending message that include text, voice,video,or graphics.Sending message to
users on network outside the internet.

66. What do you mean by local login and remote login ?
When a user logs into a local time-sharing system ,it is called local login. When a
user wants to access an application program or utility located on a remote
machine,he or she performs remote login.

67. What is Network Virtual Terminal ?

A universal interface provided by TELNET is called Network Virtual Terminal(NVT)
character set. Via this interface TELNET translates characters (data or command)
that come from local terminal into NVT form and delivers them to the network.

General windows interviews questions and answers - Part 2

General windows interviews questions and answers - Part 2

1. Explain the concept of Reentrancy?
It is a useful, memory-saving technique for multiprogrammed timesharing systems.
A Reentrant Procedure is one in which multiple users can share a single copy of a
program during the same period. Reentrancy has 2 key aspects: The program code
cannot modify itself, and the local data for each user process must be stored
separately. Thus, the permanent part is the code, and the temporary part is the
pointer back to the calling program and local variables used by that program. Each
execution instance is called activation. It executes the code in the permanent part,
but has its own copy of local variables/parameters. The temporary part associated
with each activation is the activation record. Generally, the activation record is kept
on the stack.
Note: A reentrant procedure can be interrupted and called by an interrupting
program, and still execute correctly on returning to the procedure.

2. Explain Belady's Anomaly?
Also called FIFO anomaly. Usually, on increasing the number of frames allocated to a
process virtual memory, the process execution is faster, because fewer page faults
occur. Sometimes, the reverse happens, i.e., the execution time increases even
when more frames are allocated to the process. This is Belady's Anomaly. This is true
for certain page reference patterns.

3. What is a binary semaphore? What is its use?
A binary semaphore is one, which takes only 0 and 1 as values. They are used to
implement mutual exclusion and synchronize concurrent processes.

4. What is thrashing?
It is a phenomenon in virtual memory schemes when the processor spends most of
its time swapping pages, rather than executing instructions. This is due to an
inordinate number of page faults.

5. List the Coffman's conditions that lead to a deadlock.
1.
Mutual Exclusion: Only one process may use a critical resource at a time.
2.
Hold & Wait: A process may be allocated some resources while waiting for
others.
3.
No Pre-emption: No resource can be forcible removed from a process
holding it.
4.
Circular Wait: A closed chain of processes exist such that each process holds

at least one resource needed by another process in the chain.

6. What are short, long and medium-term scheduling?
Long term scheduler determines which programs are admitted to the system for
processing. It controls the degree of multiprogramming. Once admitted, a job
becomes a process.

Medium term scheduling is part of the swapping function. This relates to
processes that are in a blocked or suspended state. They are swapped out of real-
memory until they are ready to execute. The swapping-in decision is based on
memory-management criteria.

Short term scheduler, also know as a dispatcher executes most frequently, and
makes the finest-grained decision of which process should execute next. This
scheduler is invoked whenever an event occurs. It may lead to interruption of one
process by preemption.

7. What are turnaround time and response time?
Turnaround time is the interval between the submission of a job and its completion.
Response time is the interval between submission of a request, and the first
response to that request.

8. What are the typical elements of a process image?
User data: Modifiable part of user space. May include program data, user stack
area, and programs that may be modified.

User program: The instructions to be executed.

System Stack: Each process has one or more LIFO stacks associated with it. Used
to store parameters and calling addresses for procedure and system calls.

Process control Block (PCB): Info needed by the OS to control processes.

9. What is the Translation Lookaside Buffer (TLB)?
In a cached system, the base addresses of the last few referenced pages is
maintained in registers called the TLB that aids in faster lookup. TLB contains those
page-table entries that have been most recently used. Normally, each virtual
memory reference causes 2 physical memory accesses-one to fetch appropriate
page-table entry, and one to fetch the desired data. Using TLB in-between, this is
reduced to just one physical memory access in cases of TLB-hit.


10. What is the resident set and working set of a process?
Resident set is that portion of the process image that is actually in real-memory at a
particular instant. Working set is that subset of resident set that is actually needed
for execution. (Relate this to the variable-window size method for swapping
techniques.)

11. When is a system in safe state?
The set of dispatchable processes is in a safe state if there exists at least one
temporal order in which all processes can be run to completion without resulting in a
deadlock.

12. What is cycle stealing?
We encounter cycle stealing in the context of Direct Memory Access (DMA). Either
the DMA controller can use the data bus when the CPU does not need it, or it may
force the CPU to temporarily suspend operation. The latter technique is called cycle
stealing. Note that cycle stealing can be done only at specific break points in an
instruction cycle.

13. What is meant by arm-stickiness?
If one or a few processes have a high access rate to data on one track of a storage
disk, then they may monopolize the device by repeated requests to that track. This
generally happens with most common device scheduling algorithms (LIFO, SSTF, CSCAN,
etc). High-density multisurface disks are more likely to be affected by this
than low density ones.

14. What are the stipulations of C2 level security?
C2 level security provides for:

1. Discretionary Access Control
2. Identification and Authentication
3. Auditing
4. Resource reuse

15. What is busy waiting?
The repeated execution of a loop of code while waiting for an event to occur is called
busy-waiting. The CPU is not engaged in any real productive activity during this
period, and the process does not progress toward completion.


16. Explain the popular multiprocessor thread-scheduling strategies.
1. Load Sharing: Processes are not assigned to a particular processor. A global
queue of threads is maintained. Each processor, when idle, selects a thread
from this queue. Note that load balancing refers to a scheme where work is
allocated to processors on a more permanent basis.
2. Gang Scheduling: A set of related threads is scheduled to run on a set of
processors at the same time, on a 1-to-1 basis. Closely related threads /
processes may be scheduled this way to reduce synchronization blocking, and
minimize process switching. Group scheduling predated this strategy.
3. Dedicated processor assignment: Provides implicit scheduling defined by
assignment of threads to processors. For the duration of program execution,
each program is allocated a set of processors equal in number to the number
of threads in the program. Processors are chosen from the available pool.
4. Dynamic scheduling: The number of thread in a program can be altered
during the course of execution.
17. When does the condition 'rendezvous' arise?
In message passing, it is the condition in which, both, the sender and receiver are
blocked until the message is delivered.

18. What is a trap and trapdoor?
Trapdoor is a secret undocumented entry point into a program used to grant access
without normal methods of access authentication. A trap is a software interrupt,
usually the result of an error condition.

19. What are local and global page replacements?
Local replacement means that an incoming page is brought in only to the relevant
process address space. Global replacement policy allows any page frame from any
process to be replaced. The latter is applicable to variable partitions model only.

20. Define latency, transfer and seek time with respect to disk I/O.
Seek time is the time required to move the disk arm to the required track. Rotational
delay or latency is the time it takes for the beginning of the required sector to reach
the head. Sum of seek time (if any) and latency is the access time. Time taken to
actually transfer a span of data is transfer time.

21. Describe the Buddy system of memory allocation.
Free memory is maintained in linked lists, each of equal sized blocks. Any such block
is of size 2^k. When some memory is required by a process, the block size of next


higher order is chosen, and broken into two. Note that the two such pieces differ in
address only in their kth bit. Such pieces are called buddies. When any used block is
freed, the OS checks to see if its buddy is also free. If so, it is rejoined, and put into
the original free-block linked-list.

22. What is time-stamping?
It is a technique proposed by Lamport, used to order events in a distributed system
without the use of clocks. This scheme is intended to order events consisting of the
transmission of messages. Each system 'i' in the network maintains a counter Ci.
Every time a system transmits a message, it increments its counter by 1 and
attaches the time-stamp Ti to the message. When a message is received, the
receiving system 'j' sets its counter Cj to 1 more than the maximum of its current
value and the incoming time-stamp Ti. At each site, the ordering of messages is
determined by the following rules: For messages x from site i and y from site j, x
precedes y if one of the following conditions holds....(a) if Ti<Tj or (b) if Ti=Tj and
i<j.

23. How are the wait/signal operations for monitor different from those for
semaphores?
If a process in a monitor signal and no task is waiting on the condition variable, the
signal is lost. So this allows easier program design. Whereas in semaphores, every
operation affects the value of the semaphore, so the wait and signal operations
should be perfectly balanced in the program.

24. In the context of memory management, what are placement and
replacement algorithms?
Placement algorithms determine where in available real-memory to load a program.
Common methods are first-fit, next-fit, best-fit. Replacement algorithms are used
when memory is full, and one process (or part of a process) needs to be swapped out
to accommodate a new program. The replacement algorithm determines which are
the partitions to be swapped out.

25. In loading programs into memory, what is the difference between load-
time dynamic linking and run-time dynamic linking?
For load-time dynamic linking: Load module to be loaded is read into memory.
Any reference to a target external module causes that module to be loaded and the
references are updated to a relative address from the start base address of the
application module.

With run-time dynamic loading: Some of the linking is postponed until actual


reference during execution. Then the correct module is loaded and linked.

26. What are demand-paging and pre-paging?
With demand paging, a page is brought into memory only when a location on that
page is actually referenced during execution. With pre-paging, pages other than the
one demanded by a page fault are brought in. The selection of such pages is done
based on common access patterns, especially for secondary memory devices.

27. Paging a memory management function, while multiprogramming a
processor management function, are the two interdependent?
Yes.

28. What is page cannibalizing?
Page swapping or page replacements are called page cannibalizing.

29. What has triggered the need for multitasking in PCs?
1.
Increased speed and memory capacity of microprocessors together with the
support fir virtual memory and
2.
Growth of client server computing
30. What are the four layers that Windows NT have in order to achieve
independence?
1.
Hardware abstraction layer
2.
Kernel
3.
Subsystems
4.
System Services.
31. What is SMP?
To achieve maximum efficiency and reliability a mode of operation known as
symmetric multiprocessing is used. In essence, with SMP any process or threads can
be assigned to any processor.

32. What are the key object oriented concepts used by Windows NT?
Encapsulation, Object class and instance.

33. Is Windows NT a full blown object oriented operating system? Give
reasons.

No Windows NT is not so, because its not implemented in object oriented language
and the data structures reside within one executive component and are not
represented as objects and it does not support object oriented capabilities.

34. What is a drawback of MVT?
It does not have the features like

1. ability to support multiple processors
2. virtual storage
3. source level debugging
35. What is process spawning?
When the OS at the explicit request of another process creates a process, this action
is called process spawning.

36. How many jobs can be run concurrently on MVT?
15 jobs.

37. List out some reasons for process termination.
1. Normal completion
2. Time limit exceeded
3. Memory unavailable
4. Bounds violation
5. Protection error
6. Arithmetic error
7. Time overrun
8. I/O failure
9. Invalid instruction
10.Privileged instruction
11.Data misuse
12.Operator or OS intervention
13.Parent termination.
38. What are the reasons for process suspension?
1. swapping
2. interactive user request
3. timing
4. parent process request

39. What is process migration?
It is the transfer of sufficient amount of the state of process from one machine to the
target machine.

40. What is mutant?
In Windows NT a mutant provides kernel mode or user mode mutual exclusion with
the notion of ownership.

41. What is an idle thread?
The special thread a dispatcher will execute when no ready thread is found.

42. What is FtDisk?
It is a fault tolerance disk driver for Windows NT.

43. What are the possible threads a thread can have?
1. Ready
2. Standby
3. Running
4. Waiting
5. Transition
6. Terminated
44. What are rings in Windows NT?
Windows NT uses protection mechanism called rings provides by the process to
implement separation between the user mode and kernel mode.

45. What is Executive in Windows NT?
In Windows NT, executive refers to the operating system code that runs in kernel
mode.

46. What are the sub-components of I/O manager in Windows NT?
1. Network redirector/ Server
2. Cache manager.
3. File systems
4. Network driver
5. Device driver

47. What are DDks? Name an operating system that includes this feature.
DDks are device driver kits, which are equivalent to SDKs for writing device drivers.
Windows NT includes DDks.

48. What level of security does Windows NT meets?
C2 level security.

General windows interviews questions and answers - Part 1

General windows interviews questions and answers - Part 1

1. What is an operating system?
An operating system is a program that acts as an intermediary
between the user and the computer hardware. The purpose of an OS is
to provide a convenient environment in which user can execute
programs in a convenient and efficient manner. It is a resource
allocator responsible for allocating system resources and a control
program which controls the operation of the computer hardware.

2. Why paging is used?
Paging is solution to external fragmentation problem which is to permit
the logical address space of a process to be noncontiguous, thus
allowing a process to be allocating physical memory wherever the
latter is available.

3. Explain the concept of the batched operating systems?
In batched operating system the users gives their jobs to the operator
who sorts the programs according to their requirements and executes
them. This is time consuming but makes the CPU busy all the time.

4. What is purpose of different operating systems?
The machine purpose workstation individual usability &resources
utilization mainframe optimize utilization of hardware PC support
complex games, business application Hand held PCs Easy interface &
min. power consumption.

5. What is virtual memory?
Virtual memory is hardware technique where the system appears to
have more memory that it actually does. This is done by time-sharing,
the physical memory and storage parts of the memory one disk when
they are not actively being used.

6. What is Throughput, Turnaround time, waiting time and Response time?
Throughput : number of processes that complete their execution per time unit.

Turnaround time : amount of time to execute a particular process.

Waiting time : amount of time a process has been waiting in the ready queue.

Response time : amount of time it takes from when a request was submitted until
the firstresponse is produced, not output (for time-sharing environment).


7. What are the various components of a computer system?
The hardware

The operating system

The application programs

The users.

8. What is a Real-Time System?
A real time process is a process that must respond to the event switch in a certain
time period. A real time operating system is an operating system that can run real
time processes successfully.

9. Explain the concept of the Distributed systems?
Distributed systems work in a network. They can share the network resources,
communicate with each other.

10. What is SCSI?
SCSI -Small computer systems interface is a type of interface used for computer
components such as hard drives, optical drives, scanners and tape drives. It is a
competing technology to standard IDE (Integrated Drive Electronics).

11. What is a sector?
Smallest addressable portion of a disk.

12. What are the different operating systems?
Batched operating systems

Multi-programmed operating systems

Timesharing operating systems

Distributed operating systems

Real-time operating systems.

13. What is busy waiting?
The repeated execution of a loop of code while waiting for an event to occur is called
busy waiting.

14. What are system calls?

System calls provide the interface between a process and the operating system.
System calls for modern Microsoft windows platforms are part of the win32 API,
which is available for all the compilers written for Microsoft windows.

15. What are various scheduling queues?
Job queue

Ready queue

Device queue

16. What are java threads?
Java is one of the small number of languages that support at the language level for
the creation and management of threads. However, because threads are managed by
the java virtual machine (JVM), not by a user-level library or kernel, it is difficult to
classify Java threads as either user-or kernel-level.

17. What are types of threads?
User thread

Kernel thread

18. What is a semaphore?
It is a synchronization tool used to solve complex critical section problems. A
semaphore is an integer variable that, apart from initialization, is accessed only
through two standard atomic operations: Wait and Signal.

19. What is a deadlock?
Deadlock is a situation where a group of processes are all blocked and none of them
can become unblocked until one of the other becomes unblocked. The simplest
deadlock is two processes each of which is waiting for a message from the other.

20. What is cache memory?
Cache memory is random access memory (RAM) that a computer microprocessor can
access more quickly than it can access regular RAM. As the microprocessor processes
data, it looks first in the cache memory and if it finds the data there (from a previous
reading of data), it does not have to do the more time-consuming reading of data.

21. What is thrashing?
It is a phenomenon in virtual memory schemes when the processor spends most of


its time swapping pages, rather than executing instructions. This is due to an
inordinate number of page faults.

22. What are the states of a process?
New
Running
Waiting
Ready
Terminated


23. What is a binary semaphore?
A binary semaphore is one, which takes only 0 and 1 as values. They are used to
implement mutual exclusion and synchronize concurrent processes.

24. What is a job queue?
When a process enters the system it is placed in the job queue.

25. What is a ready queue?
The processes that are residing in the main memory and are ready and waiting to
execute are kept on a list called the ready queue.

26. What are turnaround time and response time?
Turnaround time is the interval between the submission of a job and its completion.
Response time is the interval between submission of a request, and the first
response to that request.

27. What are the operating system components?
Process management
Main memory management
File management
I/O system management
Secondary storage management
Networking
Protection system
Command interpreter system

28. What is mutex?
Mutex is a program object that allows multiple program threads to share the same
resource, such as file access, but not simultaneously. When a program is started a
mutex is created woth a unique name. After this stage, any thread that needs the
resource must lock the mutex from other threads while it is using the resource. the
mutex is set to unlock when the data is no longer needed or the routine is finished.

29. What is Marshalling?
The process of packaging and sending interface method parameters across thread or
process boundaries.

30. What are residence monitors?
Early operating systems were called residence monitors.

31. Why thread is called as a lightweight process?
It is called light weight process to emphasize the fact that a thread is like a process
but is more efficient and uses fewer resources( n hence “lighter”)and they also share
the address space.

32. What are operating system services?
Program execution

I/O operations

File system manipulation

Communication

Error detection

Resource allocation

Accounting

Protection

33. What is a process?
A program in execution is called a process. Or it may also be called a unit of work. A
process needs some system resources as CPU time, memory, files, and i/o devices to
accomplish the task. Each process is represented in the operating system by a


process control block or task control block (PCB).Processes are of two types control block or task control block (PCB).Processes are of two types

Operating system processes
User processes


34.
What are the different job scheduling in operating systems?
Scheduling is the activity of the deciding when process will receive the resources
they request.
FCFS ---> FCSFS stands for First Come First Served. In FCFS the job that has been
waiting the longest is served next.


Round Robin Scheduling--->Round Robin scheduling is a scheduling method
where each process gets a small quantity of time to run and then it is preempted and
the next process gets to run. This is called time-sharing and gives the effect of all the
processes running at the same time


Shortest Job First ---> The Shortest job First scheduling algorithm is a
nonpreemptive scheduling algorithm that chooses the job that will execute the
shortest amount of time.


Priority Scheduling--->Priority scheduling is a scheduling method where at all
times the highest priority process is assigned the resource.


35.
What is dual-mode operation?
In order to protect the operating systems and the system programs from the
malfunctioning programs the two mode operations were evolved

System mode
User mode.


36.
What is a device queue?
A list of processes waiting for a particular I/O device is called device queue.

37.
What are the different types of Real-Time Scheduling?
Hard real-time systems required to complete a critical task within a guaranteed
amount of time.
Soft real-time computing requires that critical processes receive priority over less
fortunate ones.


38.
What is starvation ?
Starvation is a resource management problem where a process does not get the
resources it needs for a long time because the resources are being allocated to other
processes.

39.
What is a long term scheduler & short term schedulers?
Long term schedulers are the job schedulers that select processes from the job
queue and load them into memory for execution.
The Short term schedulers are the CPU schedulers that select a process form the
ready queue and allocate the CPU to one of them.


40.
What is fragmentation?
Fragmentation occurs in a dynamic memory allocation system when many of the free
blocks are too small to satisfy any request.

41.
What is context switching?
Transferring the control from one process to other process requires saving the state
of the old process and loading the saved state for new process. This task is known as
context switching.

42.
What is relative path and absolute path?
Absolute path--Exact path from root directory.
Relative path--Relative to the current path.

43.
What are the disadvantages of context switching?
Time taken for switching from one process to other is pure over head. Because the
system does no useful work while switching. So one of the solutions is to go for
threading when ever possible.

44.
What is the state of the processor, when a process is waiting for some event
to occur?
Waiting state

45.
What is the difference between Primary storage and secondary storage?
Main memory -only large storage media that the CPU can access directly.

Secondary storage -extension of main memory that provides large nonvolatile


storage capacity.

46. What is process synchronization?
A situation, where several processes access and manipulate the same data
concurrently and the outcome of the execution depends on the particular order in
which the access takes place, is called race condition. To guard against the race
condition we need to ensure that only one process at a time can be manipulating the
same data. The technique we use for this is called process synchronization.

47. What is a data register and address register?
Data registers -can be assigned to a variety of functions by the programmer. They
can be used with any machine instruction that performs operations on data.
Address registers -contain main memory addresses of data and instructions or
they contain a portion of the address that is used in the calculation of the complete
addresses.

48. What are deadlock prevention techniques?
Mutual exclusion
Hold and wait
No preemption
Circular wait

49. What is the difference between Complier and Interpreter?
An interpreter reads one instruction at a time and carries out the actions implied by
that instruction. It does not perform any translation. But a compiler translates the
entire instructions.

50. What is a Safe State and what is its use in deadlock avoidance?
When a process requests an available resource, system must decide if immediate
allocation leaves the system in a safe state. System is in safe state if there exists a
safe sequence of all processes. Deadlock Avoidance : ensure that a system will never
enter an unsafe state.

51. What is the difference between microkernel and macro kernel?
Micro-Kernel : A micro-kernel is a minimal operating system that
performs only the essential functions of an operating system. All other
operating system functions are performed by system processes.
Monolithic : A monolithic operating system is one where all operating
system code is in a single executable image and all operating system
code runs in system mode.

52. What is DRAM?
Dynamic Ram stores the data in the form of Capacitance, and Static
RAM stores the data in Voltages.

53. What are the different functions of Scheduler?
Scheduler deals with the problem of deciding which of the process in
the ready queue is to be allocated the CPU. Short Term Schedulers,
Long Term Schedulers

54. What is a trap and trapdoor?
Trapdoor is a secret undocumented entry point into a program used to
grant access without normal methods of access authentication. A trap
is a software interrupt, usually the result of an error condition.

55. What are local and global page replacements?
Local replacement means that an incoming page is brought in only to
the relevant process' address space. Global replacement policy allows
any page frame from any process to be replaced. The latter is
applicable to variable partitions model only.

56. What is cache-coherency?
In a multiprocessor system there exist several caches each may containing a copy of
same variable A. Then a change in one cache should immediately be reflected in all
other caches this process of maintaining the same value of a data in all the caches s
called cache-coherency.

57. What are the benefits of multithreaded programming?
Responsiveness
Resources sharing
Economy
Utilization of multiprocessor architectures.

DHCP interview questions and answers - Part 2

DHCP interview questions and answers - Part 2

What is client ID
What is termed the Client ID for the purposes of the DHCP protocol is whatever is used by the protocol to identify the client computer. By default, DHCP implementations typically employ the client’s MAC address for this purpose, but the DHCP protocol allows other options. Some DHCP implementations have a setup option to specify the client ID you want. One alternative to the MAC address is simply a character string of your choice. In any case, in order for DHCP to function, you must be certain that no other client is using the client ID you choose, and you must be sure the DHCP server will accept it.

Can a DHCP client boot from BOOTP servers ?
Only if the DHCP client were specifically written to make use of the answer from a BOOTP server. It would presumably treat a BOOTP reply as an unending lease on the IP address.
In particular, the TCP/IP stack included with Windows 95 does not have this capability.

Can a DHCP server back up another DHCP server?
You can have two or more servers handing out leases for different addresses. If each has a dynamic pool accessible to the same clients, then even if one server is down, one of those clients can lease an address from the other server.
However, without communication between the two servers to share their information on current leases, when one server is down, any client with a lease from it will not be able to renew their lease with the other server. Such communication is the purpose of the “server to server protocol” (see next question). It is possible that some server vendors have addressed this issue with their own proprietary server-to-server communication.

Can DHCP work with AppleTalk or IPX?
No, it is too tied to IP. Furthermore, they don’t need it since they have always had automated mechanisms for assigning their own network addresses.

How does DHCP and BOOTP handle multiple subnets?
For the situations where there is more than one LAN, each with its own subnet number, there are two ways. First of all, you can set up a seperate server on each subnet. Secondly, a feature of some routers known as “BOOTP forwarding” to forward DHCP or BOOTP requests to a server on another subnet and to forward the replies back to the client. The part of  such a router (or server acting as a router) that does this is called a “BOOTP forwarding agent”. Typically you have to enable it on the interface to the subnet to be served and have to configure it with the IP address of the DHCP or BOOTP server. On a Cisco router, the address is known as the “UDP Helper Address”.

How can I relay DHCP if my router does not support it?
A server on a net(subnet) can relay DHCP or BOOTP for that net. Microsoft has software to make Windows NT do this.

What protocol and port does DHCP use?
DHCP, like BOOTP runs over UDP, utilizing ports 67 and 68.

Can a DHCP client or server make a DNS server update the client’s DNS entry to match the client’s dynamically assigned address?
RFCs 2136 and 2137 indicate a way in which DNS entries can be updated dynamically. Using this requires a DNS server that supports this feature and a DHCP server that makes use of it. The RFCs are very recent (as of 5/97) and implementations are few. In the mean time, there are DNS and DHCP servers that accomplish this through proprietary means.

How can I relay DHCP if my router does not support it?
A server on a net(subnet) can relay DHCP or BOOTP for that net. Microsoft has software to make Windows NT do this.

How can I prevent unauthorized laptops from using a network that uses DHCP for dynamic addressing?
This would have to be done using a mechanism other than DHCP. DHCP does not prevent other clients from using the addresses it is set to hand out nor can it distinguish between a computer’s permanent MAC address and one set by the computer’s user. DHCP can impose no restrictions on what IP address can use a particular port nor control the IP address used by any client.


How is it different than BOOTP or RARP?
DHCP: DHCP is based on BOOTP and maintains some backward compatibility. The main difference is that BOOTP was designed for manual pre-configuration of the host information in a server database, while DHCP allows for dynamic allocation of network addresses and configurations to newly attached hosts. Additionally, DHCP allows for recovery and reallocation of network addresses through a leasing mechanism.
RARP: RARP is a protocol used by Sun and other vendors that allows a computer to find out its own IP number, which is one of the protocol parameters typically passed to the client system by DHCP or BOOTP. RARP doesn’t support other parameters and using it, a server can only serve a single LAN. DHCP and BOOTP are designed so they can be routed.

What is DHCP Spoofing?
Ascend Pipeline ISDN routers (which attach Ethernets to ISDN lines) incorporate a feature that Ascend calls “DHCP spoofing” which is essentially a tiny server implementation that hands an IP address to a connecting Windows 95 computer, with the intention of giving it an IP number during its connection process.

Who Created It? How Was It Created?
DHCP was created by the Dynamic Host Configuration Working Group of the Internet Engineering Task Force (IETF; a volunteer organization which defines protocols for use on the Internet). As such, it’s definition is recorded in an Internet RFC and the Internet Activities Board (IAB) is asserting its status as to Internet Standardization. As of this writing (June 1998), DHCP is an Internet Draft Standard Protocol and is Elective. BOOTP is an Internet Draft Standard Protocol and is recommended. For more information on Internet standardization, see RFC2300 (May 1998).




DHCP interview questions and answers - Part 1

DHCP interview questions and answers - Part 1



What is dhcp?
Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a server to automatically assign an IP address to a computer from a defined range of numbers (i.e., a scope) configured for a given network.

What is the dhcp process for client machine?
1. A user turns on a computer with a DHCP client.
2. The client computer sends a broadcast request (called a DISCOVER or DHCPDISCOVER), looking for a DHCP server to answer.
3. The router directs the DISCOVER packet to the correct DHCP server.
4. The server receives the DISCOVER packet. Based on availability and usage policies set on the server, the server determines an appropriate address (if any) to give to the client. The server then temporarily reserves that address for the client and sends back to the client an OFFER (or DHCPOFFER) packet, with that address information. The server also configures the client's DNS servers, WINS servers, NTP servers, and sometimes other services as well.
5. The client sends a REQUEST (or DHCPREQUEST) packet, letting the server know that it intends to use the address.
6. The server sends an ACK (or DHCPACK) packet, confirming that the client has been given a lease on the address for a server-specified period of time.

What is dhcp scope?
DHCP scopes are used to define ranges of addresses from which a DHCP server can assign IP addresses to clients.

Types of scopes in windows dhcp ?
Normal Scope - Allows A, B and C Class IP address ranges to be specified including subnet masks, exclusions and reservations. Each normal scope defined must exist within its own subnet.
Multicast Scope - Used to assign IP address ranges for Class D networks. Multicast scopes do not have subnet masks, reservation or other TCP/IP options.
Multicast scope address ranges require that a Time To Live (TTL) value be specified (essentially the number of routers a packet can pass through on the way to its destination).
Superscope - Essentially a collection of scopes grouped together such that they can be enabled and disabled as a single entity.

What is Authorizing DHCP Servers in Active Directory?
If a DHCP server is to operate within an Active Directory domain (and is not running on a domain controller) it must first be authorized.
This can be achieved either as part of the DHCP Server role installation, or subsequently using either DHCP console or at the command prompt using the netsh tool.
If the DHCP server was not authorized during installation, invoke the DHCP console (Start - All Programs - Administrative Tools - DHCP),
right click on the DHCP to be authorized and select Authorize. To achieve the same result from the command prompt, enter the following command:
netsh dhcp server serverID initiate auth
In the above command syntax, serverID is replaced by the IP address or full UNC name of system on which the DHCP server is installed.

What ports are used by DHCP and the DHCP clients ?
Requests are on UDP port 68, Server replies on UDP 67 .

Benefits of using DHCP
DHCP provides the following benefits for administering your TCP/IP-based network:
Safe and reliable configuration. DHCP avoids configuration errors caused by the need to manually type in values at each computer. Also, DHCP helps prevent address conflicts caused by a previously assigned IP address being reused to configure a new computer on the network.
Reduces configuration management.
Using DHCP servers can greatly decrease time spent to configuring and reconfiguring computers on your network. Servers can be configured to supply a full range of additional configuration values when assigning address leases. These values are assigned using DHCP options. Also, the DHCP lease renewal process helps assure that where client configurations need to be updated often (such as users with mobile or portable computers who change locations frequently), these changes can be made efficiently and automatically by clients communicating directly with DHCP servers.

The following section covers issues that affect the use of the DHCP Server service with other services or network configurations. Using DNS servers with DHCP Using Routing and Remote Access servers with DHCP Multihomed DHCP servers.

Describe the process of installing a DHCP server in an AD infrastructure?
Open Windows Components Wizard. Under Components , scroll to and click Networking Services. Click Details . Under Subcomponents of Networking Services , click Dynamic Host Configuration Protocol (DHCP) and then click OK .
Click Next . If prompted, type the full path to the Windows Server 2003 distribution files, and then click Next. Required files are copied to your hard disk.

How to authorize a DHCP server in Active Directory Open DHCP?
In the console tree, click DHCP
. On the Action menu, click Manage authorized servers.
. The Manage Authorized Servers dialog box appears. Click Authorize.
. When prompted, type the name or IP address of the DHCP server to be authorized, and then click OK.

What is DHCPINFORM?
DHCPInform is a DHCP message used by DHCP clients to obtain DHCP options. While PPP remote access clients do not use DHCP to obtain IP addresses for the remote access connection, Windows 2000 and Windows 98 remote access clients use the DHCPInform message to obtain DNS server IP addresses, WINS server IP addresses, and a DNS domain name.
The DHCPInform message is sent after the IPCP negotiation is concluded. The DHCPInform message received by the remote access server is then forwarded to a DHCP server. The remote access server forwards DHCPInform messages only if it has been configured with the DHCP Relay Agent.

Describe the integration between DHCP and DNS?
Traditionally, DNS and DHCP servers have been configured and managed one at a time. Similarly, changing authorization rights for a particular user on a group of devices has meant visiting each one and making configuration changes.
DHCP integration with DNS allows the aggregation of these tasks across devices, enabling a company's network services to scale in step with the growth of network users, devices, and policies, while reducing administrative operations and costs. This integration provides practical operational efficiencies that lower total cost of ownership.

Creating a DHCP network automatically creates an associated DNS zone, for example, reducing the number of tasks required of network administrators. And integration of DNS and DHCP in the same database instance provides unmatched consistency between service and management views of IP address-centric network services data.

DNS interview questions and answers - Part 3

DNS interview questions and answers - Part 3

 1. Secure services in your network require reverse name resolution to make it more difficult to launch successful attacks against the services. To set this up, you configure a reverse lookup zone and proceed to add records. Which record types do you need to create?
Answer - PTR Records

2.What is the main purpose of a DNS server?
Answer - DNS servers are used to resolve FQDN hostnames into IP addresses and vice versa.

3.SOA records must be included in every zone. What are they used for?
Answer - SOA records contain a TTL value, used by default in all resource records in the zone. SOA records contain the e-mail address of the person who is responsible for maintaining the zone. SOA records contain the current serial number of the zone, which is used in zone transfers.

4.By default, if the name is not found in the cache or local hosts file, what is the first step the client takes to resolve the FQDN name into an IP address?
Answer - Performs a recursive search through the primary DNS server based on the network interface configuration

5.What is the main purpose of SRV records?
Answer - SRV records are used in locating hosts that provide certain network services.

6.Before installing your first domain controller in the network, you installed a DNS server and created a zone, naming it as you would name your AD domain. However, after the installation of the domain controller, you are unable to locate infrastructure SRV records anywhere in the zone. What is the most likely cause of this failure?
Answer - The zone you created was not configured to allow dynamic updates. The local interface on the DNS server was not configured to allow dynamic updates.

7.Which of the following conditions must be satisfied to configure dynamic DNS updates for legacy clients?
Answer - The zone to be used for dynamic updates must be configured to allow dynamic updates. The DHCP server must support, and be configured to allow, dynamic updates for legacy clients.

8. At some point during the name resolution process, the requesting party received authoritative reply. Which further actions are likely to be taken after this reply?
Answer - After receiving the authoritative reply, the resolution process is effectively over.

9. Your company uses ten domain controllers, three of which are also used as DNS servers. You have one companywide AD-integrated zone, which contains several thousand resource records. This zone also allows dynamic updates, and it is critical to keep this zone up-to-date.Replication between domain controllers takes up a significant amount of bandwidth. You are looking to cut bandwidth usage for the purpose of replication. What should you do?

Answer - Change the replication scope to all DNS servers in the domain.

10.You are administering a network connected to the Internet. Your users complain that everything is slow. Preliminary research of the problem indicates that it takes a considerable amount of time to resolve names of resources on the Internet. What is the most likely reason for this? 

Answer - DNS servers are not caching replies.. Local client computers are not caching replies… The cache.dns file may have been corrupted on the server.

DNS interview questions and answers - Part 2

DNS interview questions and answers - Part 2

Q1. What is DNS?
Domain Name System is a service that can be installed on any windows server operating system to resolve the Name to IPAddress and vice-versa. TCP/IP networks, such as the Internet, use DNS to locate computers and services through user-friendly names

Q2. What is DDNS?
Dynamic DNS or DDNS is a method of updating, in real time, a Domain Name System to point to a changing IP address on the Internet. This is used to provide a persistent domain name for a resource that may change location on the network.

Q3. What are the resource records in DNS?

    A (Address) Maps a host name to an IP address. When a computer has multiple adapter cards and IP addresses, it should have multiple address records.
    CNAME (Canonical Name) Sets an alias for a host name. For example, using this record, zeta.tvpress.com can have an alias as www.tvpress.com.
    MX (Mail Exchange) Specifies a mail exchange server for the domain, which allows mail to be delivered to the correct mail servers in the domain.
    NS (Name Server) Specifies a name server for the domain, which allows DNS lookups within various zones. Each primary and secondary name server should be declared through this record.
    PTR (Pointer) Creates a pointer that maps an IP address to a host name for reverse lookups.
    SOA (Start of Authority) Declares the host that is the most authoritative for the zone and, as such, is the best source of DNS information for the zone. Each zone file must have an SOA record (which is created automatically when you add a zone).

Q4. What are a Forward and Reverse Lookup?

    Forward Lookup: When a name query is send to the DNS server against to IP address, it is generally said a forward lookup.
    Reverse Lookup: DNS also provides a reverse lookup process, enabling clients to use a known IP address during a name query and look up a computer name based on its address.

Q5. What is Primary zone?
This is the read and writable copy of a zone file in the DNS namespace. This is primary source for information about the zone and it stores the master copy of zone data in a local file or in AD DS. Dy default the primary zone file is named as zone_name.dns in %windir%\System32\DNS folder on the server.

Q6. What id Secondary zone?
This is the read only copy of a zone file in the DNS namespace. This is secondary source for information about the zone and it get the updated information from the master copy of primary zone. The network access must be available to connect with primary server. As secondary zone is merely a copy of a primary zone that is hosted on another server, it cannot be stored in AD DS.

Q7. What is stub Zone?
A stub zone is a read only copy of a zone that contains only those resource records which are necessary to identify the authoritative DNS servers for that particular zone. A stub zone is practically used to resolve names between separate DNS namespaces. This type of zone is generally created when a corporate merger or acquire and DNS servers for two separate DNS namespaces resolve names for clients in both namespaces.

A stub zone contains:
The start of authority (SOA) resource record, name server (NS) resource records, and the glue A resource records for the delegated zone.
The IP address of one or more master servers that can be used to update the stub zone.

Q8. What is Caching Only Server?
Caching-only servers are those DNS servers that only perform name resolution queries, cache the answers, and return the results to the client. Once the query is stored in cache, next time the query in resolved locally from cached instead of going to the actual site.

Q9. What is Aging and Scavenging?
DNS servers running Windows Server support aging and scavenging features. These features are provided as a mechanism to perform cleanup and removal of stale resource records from the server and zone. This feature removes the dynamically created records when they are stamped as stale.

By default, the aging and scavenging mechanism for the DNS Server service is disabled.

Scavenging and aging must be enabled both at the DNS server and on the zone

Q10. What is SRV record in DNS?
The SRV record is a resource record in DNS that is used to identify or point to a computer that host specific services i.e Active directory.

Q11. What is Forwarding in DNS?
A forwarder is a feature in DNS server that is used to forward DNS queries for external DNS names to DNS servers outside of that network. We ca configure a DNS server as a forwarder to forward the name query to other DNS servers in the network when they cannot resolve locally to that DNS server.

Q12. What is Conditional Forwarding in DNS?
We can configure the DNS server to forward queries according to specific domain names using conditional forwarders. In this case query is forward to an IP address against a DNS domain name.

    Q13. What are Queries types in DNS?
    Recursive Query: This name queries are generally made by a DNS client to a DNS server or by a DNS server that is configured to pass unresolved name queries to another DNS server, in the case of a DNS server configured to use a forwarder.
    Iterative Query: An iterative name query is one in which a DNS client allows the DNS server to return the best answer it can give based on its cache or zone data. If the queried DNS server does not have an exact match for the queried name, the best possible information it can return is a referral. The DNS client can then query the DNS server for which it obtained a referral. It continues this process until it locates a DNS server that is authoritative for the queried name, or until an error or time-out condition is met.

Q13. What are Tools for troubleshooting of DNS?
DNS Console, NSLOOKUP, DNSCMD, IPCONFIG, DNS Logs.

Q14. How to check DNS health?
Using the DCdiag.
i.e. (dcdiag /test:dns /v /e)


Q15.What is the use of Stub zone ?
1. Keep delegated zone information current. By updating a stub zone for one of its child zones regularly, the DNS server that hosts both the parent zone and the stub zone will maintain a current list of authoritative DNS servers for the child zone.
2. Improve name resolution. Stub zones enable a DNS server to perform recursion using the stub zone's list of name servers, without having to query the Internet or an internal root server for the DNS namespace.
3. Simplify DNS administration. By using stub zones throughout your DNS infrastructure, you can distribute a list of the authoritative DNS servers for a zone without using secondary zones. However, stub zones do not serve the same purpose as secondary zones, and they are not an alternative for enhancing redundancy and load sharing.

Q16. What is a Resource Record?
It is a record provides the information about the resources available in the N/W infrastructure.

Q17. What are the types of Resource Records in DNS ?
Different types of resource records can be used to provide DNS-based data about computers on a TCP/IP network. This section describes the following resource records:
1. SOA - Every zone contains a Start of Authority (SOA) resource record at the beginning of the zone.
2. NS - The name server (NS) resource record indicates the servers authoritative for the zone.
3. A - The address (A) resource record maps an FQDN to an IP address.
4. PTR - The pointer(PTR) resource record,in contrast to the A resource record, maps an IP address to an FQDN.
5. CNAME - The canonical name (CNAME) resource record creates an alias (synonymous name) for the specified FQDN.
6. MX - The mail exchange (MX) resource record specifies a mail exchange server for a DNS domain name.
7. SRV - Service (SRV) resource records enable you to specify the location of the servers for a specific service, protocol, and DNS domain.

Q18. How do you manually create SRV records in DNS?
This is on windows server go to run ---> dnsmgmt.msc rightclick on the zone you want to add srv record to and choose "other new record" and choose service location(srv).

Q19.What is the main purpose of SRV records ?
SRV records are used in locating hosts that provide certain network services.

Q20.Before installing your first domain controller in the network, you installed a DNS server and created a zone, naming it as you would name your AD domain. However, after the installation of the domain controller, you are unable to locate infrastructure SRV records anywhere in the zone. What is the most likely cause of this failure ?
The zone you created was not configured to allow dynamic updates. The local interface on the DNS server was not configured to allow dynamic updates.

Q21.What is Name Server?
A name server keeps information for the translation of domain names to IP addresses and IP addresses to domain names. The name server is a program that performs the translation at the request of a resolver or another name server.

Q22.What is Primary name server or primary master server?
Primary name server/primary masteris the main data source for the zone. It is the authoritative server for the zone. This server acquires data about its zone from databases saved on a local disk. The primary server must be published as an authoritative name server for the domain in the SOA resource record, while the primary master server does not need to be published.

Q23.What is Secondary name server/slave name server?
Secondary name server/slave name server acquires data about the zone by copying the data from the primary name server (respectively from the master server) at regular time intervals. It makes no sense to edit these databases on the secondary name servers, although they are saved on the local server disk because they will be rewritten during further copying.

Q24. Which of the following conditions must be satisfied to configure dynamic DNS updates for legacy clients ?
The zone to be used for dynamic updates must be configured to allow dynamic updates. The DHCP server must support, and be configured to allow, dynamic updates for legacy clients.

Q25. At some point during the name resolution process, the requesting party received authoritative reply. Which further actions are likely to be taken after this reply ?
After receiving the authoritative reply, the resolution process is effectively over.

Q26. Name few benefits of using AD-integrated zones.
1. Multimaster update and enhanced security based on the capabilities of Active Directory.
2. Zones are replicated and synchronized to new domain controllers automatically whenever a new one is added to an Active Directory domain.
3. By integrating storage of your DNS zone databases in Active Directory, you can streamline database replication planning for your network.
4. Directory replication is faster and more efficient than standard DNS replication.

Q27. What is Root name server?
Root name server is an authoritative name server for the root domain (for the dot). Each root name server is a primary server, which differentiates it from other name servers.